<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<style>
  /* 这两个必须写 */
  @namespace svg url(http://www.w3.org/2000/svg);
  @namespace html url(http://www.w3.org/1999/xhtml);
  svg|a {
    stroke:blue;
    stroke-width:1;
  }

  html|a {
    font-size:40px
  }
/* 下面这样写实际是html命名空间*/
  a{
    color: red;
  }
</style>
<svg width="100" height="28" viewBox="0 0 100 28" version="1.1"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <desc>Example link01 - a link on an ellipse
  </desc>
  <a xlink:href="http://www.w3.org">
    <text y="100%">name11</text>
  </a>
</svg>
<br/>
<a href="javascript:void 0;">name22</a>
</body>
</html>


